package com.cheng.mybatis04.entity;

import java.util.Date;
import java.util.List;

public class Dept {
    private int id;
    private String deptName;
    private Date createDate;
    private List<Emp> empList;

    public Dept() {
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    public Dept(int id, String deptName, Date createDate, List<Emp> empList) {
        this.id = id;
        this.deptName = deptName;
        this.createDate = createDate;
        this.empList = empList;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", createDate=" + createDate +
                ", empList=" + empList +
                '}';
    }
}
